
import QtQuick 2.15

Rectangle {
    id: screenTimeWidget
    width: 200
    height: 100
    radius: 10
    color: "white"
    border.color: "black"

    Column {
        anchors.centerIn: parent

        Text {
            id: usageTitle
            text: qsTr("Screen Time Used")
            font.pixelSize: 16
            color: "black"
        }

        ProgressBar {
            id: usageBar
            value: 0.5  // Example usage: 50%
            width: parent.width * 0.8
        }

        Text {
            id: usageText
            text: qsTr("%1% of daily limit used").arg(50)
            font.pixelSize: 12
        }
    }
}
